package com.example.hydrogengenerator.event

import kotlinx.coroutines.flow.MutableSharedFlow
import me.hgj.jetpackmvvm.base.viewmodel.BaseViewModel
import me.hgj.jetpackmvvm.callback.livedata.event.EventLiveData

/**
 * 描述　:APP全局的ViewModel，可以在这里发送全局通知替代EventBus，LiveDataBus等
 */
class EventViewModel : BaseViewModel() {

    val keyBoardShowEvent = EventLiveData<Boolean>()

    val spo2Data = MutableSharedFlow<Int>()

    //呼吸率
    val respirationRate = MutableSharedFlow<Int>()

    //吸气标记
    val inhalationMark = MutableSharedFlow<Int>()

    //脉搏波形数据
    val pulseWaveData = MutableSharedFlow<Int>()

    //脉率
    val pulse = MutableSharedFlow<Int>()

    //血氧饱和度
    val spo2 = MutableSharedFlow<Int>()


}